
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.SystemRight;
import com.cmc.dao.SystemRightDao;
import com.cmc.service.SystemRightManager;
/*
* @aegis.mapping
*/
public class SystemRightManagerImpl extends BaseManager implements SystemRightManager {
    private SystemRightDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setSystemRightDao(SystemRightDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.SystemRightManager#getSystemRights(com.cmc.model.SystemRight)
     */
    public List getSystemRights(final SystemRight systemRight) {
        return dao.getSystemRights(systemRight);
    }

    /**
     * @see com.cmc.service.SystemRightManager#getSystemRight(String id)
     */
    public SystemRight getSystemRight(final String id) {
        return dao.getSystemRight(new Long(id));
    }

    /**
     * @see com.cmc.service.SystemRightManager#saveSystemRight(SystemRight systemRight)
     */
    public void saveSystemRight(SystemRight systemRight) {
        dao.saveSystemRight(systemRight);
    }

    /**
     * @see com.cmc.service.SystemRightManager#removeSystemRight(String id)
     */
    public void removeSystemRight(final String id) {
        dao.removeSystemRight(new Long(id));
    }
}
